﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using System.Text;
using WorkItemGrabber.Properties;
using System.Net;
namespace WorkItemGrabber
{
    class MyIdentity : Microsoft.TeamFoundation.Client.ICredentialsProvider
    {
        #region ICredentialsProvider Members

        public System.Net.ICredentials GetCredentials(Uri uri, System.Net.ICredentials failedCredentials)
        {
            return new NetworkCredential(Settings.Default.tfsUserName, Settings.Default.tfsPassword, Settings.Default.tfsUserDomain);
        }

        public void NotifyCredentialsAuthenticated(Uri uri)
        {
            
        }

        #endregion
    }
}
